<?php
/**
 * Created by PhpStorm.
 * User: dust2
 * Date: 14-11-22
 * Time: 上午10:49
 */

class Classification extends Eloquent
{
    public $timestamps = false;

    protected $table = 'classifications';

    public function products()
    {
        return $this->hasMany('Product', 'class_id', 'id');
    }
} 